package com.qst.mapper;

import com.qst.entity.Exam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ExamMapper {
    List<Exam> findByTestPersonnel(Integer id);

    Exam findByTestPersonnelAndSchedule(@Param("personnelId") Integer id, @Param("scheduleId")  Integer id1);

    void updateExam(Exam exam);

    void saveExam(Exam exam);

    Exam findByResultId(int resultId);
}
